package com.nulp.psycho.db.model;

import java.io.Serializable;
import java.sql.Date;

import com.nulp.psycho.db.annotation.DBFieldName;

public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	@DBFieldName("id")
	private Integer id;
	@DBFieldName("role_id")
	private Integer roleId;
	@DBFieldName("fname")
	private String fName;
	@DBFieldName("lname")
	private String lName;
	@DBFieldName("login")
	private String login;
	@DBFieldName("password")
	private String password;
	@DBFieldName("email")
	private String email;
	@DBFieldName("birthday")
	private Date birthday;
	@DBFieldName("hash")
	private String hash;
	@DBFieldName("confirmation_status")
	private Boolean confirmationStatus = false;
	@DBFieldName("sex")
	private String sex;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getfName() {
		return fName;
	}
	public void setfName(String fName) {
		this.fName = fName;
	}
	public String getlName() {
		return lName;
	}
	public void setlName(String lName) {
		this.lName = lName;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getHash() {
		return hash;
	}
	public void setHash(String hash) {
		this.hash = hash;
	}
	public Boolean getConfirmationStatus() {
		return confirmationStatus;
	}
	public void setConfirmationStatus(Boolean confirmationStatus) {
		this.confirmationStatus = confirmationStatus;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", roleId=" + roleId + ", fName=" + fName + ", lName=" + lName + ", login=" + login + ", password=" + password + ", email=" + email + ", birthday=" + birthday
				+ ", hash=" + hash + ", confirmationStatus=" + confirmationStatus + ", sex=" + sex + "]";
	}
	
	
	
}
